<html>
<head>
    <%- include('./includes/head', { siteTitle: `${post.title} | ${themeConfig.siteName}` }) %>
</head>
<body>

<%- include('./includes/header') %>

<article>
    <div class="infos">
        <div class="newsview">
            <h3 class="news_title"> <%= post.title %></h3>
            <div class="news_author">
                <span                        class="au02"> <%= post.dateFormat %></span>
                <span class="tags">
                    <% post.tags.forEach(function(tag) { %>
                        <a href="<%= tag.link %>" class="post-tags">
                            <%= tag.name %>
                        </a>
                    <% }); %>
                </span>
            </div>

            <% if (themeConfig.showFeatureImage && post.feature) { %>
                <div class="post-feature-image" style="background-image: url('<%= post.feature %>')">
                </div>
            <% } %>
            <hr style="margin: 10px auto">
            <div class="news_infos markdown">
                <%- post.content %>
            </div>
        </div>
        <div class="share"></div>

        <% if (post.nextPost && !post.hideInList) { %>
            <div class="nextinfo">
                <p>下一篇：<a href="<%= post.nextPost.link %>"><%= post.nextPost.title %></a></p>
            </div>
        <% } %>

    </div>
    <!-- 个人信息 -->
    <%- include('./includes/cards/id-card.ejs') %>

    <% if (typeof commentSetting !== 'undefined' && commentSetting.showComment) { %>
        <% if (commentSetting.commentPlatform === 'gitalk') { %>
            <div class="infos" data-aos="fade-in">
                <div id="gitalk-container"></div>
            </div>
        <% } %>
        <% if (commentSetting.commentPlatform === 'disqus') { %>
            <div class="infos" data-aos="fade-in">
                <div id="disqus_thread"></div>
            </div>
        <% } %>
    <% } %>

</article>



<% if (typeof commentSetting !== 'undefined' && commentSetting.showComment) { %>
    <% if (commentSetting.commentPlatform === 'gitalk') { %>
        <%- include('./includes/gitalk') %>
    <% } %>

    <% if (commentSetting.commentPlatform === 'disqus') { %>
        <%- include('./includes/disqus') %>
    <% } %>
<% } %>

<%- include('./includes/footer') %>

</body>
</html>
